package org.github.manx98.jlibhac.crypto;

import cn.hutool.crypto.Mode;
import cn.hutool.crypto.Padding;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.symmetric.AES;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 19:50
 */
public class Aes {
    public static final int KeySize128 = 0x10;
    public static final int BlockSize = 0x10;
    public static byte[] decryptEcb128(byte[] encryptedData, byte[] key) {
        return new AES(Mode.ECB, Padding.NoPadding, key).decrypt(encryptedData);
    }
}
